package it.fuesi.expired.adapters.mongo;

import it.fuesi.expired.adapters.base.AdapterException;
import it.fuesi.expired.adapters.base.IAdapter;
import it.fuesi.expired.adapters.base.IAdapterSession;

import java.net.UnknownHostException;

public class MongoAdapter implements IAdapter{

	private static final String HOST = "localhost"; //FIXME
	private static final String DB = "expired"; //FIXME
	
	
	public IAdapterSession openSession() throws AdapterException{
			try {
				return MongoAdapterSession.factory(HOST, DB);
			} catch (UnknownHostException e) {
				throw new AdapterException(e);
			}
	}
	
	
	
}
